package com.example.database.dao;
import java.util.List;

/**
 * Created by Giovanni on 24/02/2015.
 */
public interface IDAO<T> {

    public void insert(T entity);

    public int update(T entity);

    public void delete(int id);

    public T findById(int id);

    public List<T> findAll();

    public int count();
}
